package com.huqing.icu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huqing.icu.dto.HouseDto;
import com.huqing.icu.model.HouseUserActionRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HouseUserActionRecordMapper extends BaseMapper<HouseUserActionRecord> {

    List<HouseUserActionRecord> getList(Long userId, Integer busScene, Long busId);

    List<HouseUserActionRecord> selectByUserId(@Param("userId") Long userId, @Param("houseIdList") List<Integer> houseIdList);

    HouseUserActionRecord selectOneByUserId(@Param("userId") Long userId, @Param("houseId") Long houseId, @Param("actionType") Integer actionType);

    Integer getHouseNumByUserId(@Param("userId") Long userId, @Param("actionType") Integer actionType);

    List<HouseDto> selectHouseByUserId(@Param("userId") Long userId, @Param("actionType") Integer actionType, @Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize);
}
